#-------------------------------------------------
#
# Project created by QtCreator 2024-10-07T10:20:47
#
#-------------------------------------------------

QT       += core gui network
QT += core
QT += printsupport multimedia

QMAKE_CXXFLAGS += -std=c++11
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = ertongfang
TEMPLATE = app


SOURCES += main.cpp\
        widget.cpp \
    home.cpp \
    stm32.cpp \
    modbus.cpp \
    mqtthandler.cpp \
    globalval.cpp \
    mybtn.cpp \
    video.cpp \
    qcustomplot.cpp \
    history.cpp

HEADERS  += widget.h \
    home.h \
    stm32.h \
    modbus.h \
    mqtthandler.h \
    globalval.h \
    mybtn.h \
    video.h \
    qcustomplot.h \
    history.h

FORMS    += widget.ui \
    home.ui \
    stm32.ui \
    modbus.ui \
    video.ui \
    history.ui

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/lib/ -lQt5Qmqttd
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/lib/ -lQt5Qmqttd

INCLUDEPATH += $$PWD/.
INCLUDEPATH += $$PWD/mqtt
DEPENDPATH += $$PWD/.

#win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/lib/libQt5Qmqtt.a
#else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/lib/libQt5Qmqttd.a
#else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/lib/Qt5Qmqtt.lib
#else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/lib/Qt5Qmqttd.lib

RESOURCES += \
    res.qrc

DISTFILES += \
    icon_config.rc

RC_FILE += icon_config.rc
